Skip to content

bpo-22367: Add test_lockf#17010

Merged
serhiy-storchaka merged 2 commits into
python:masterfrom
corona10:bpo-22367-unittest
Nov 7, 2019
Merged

bpo-22367: Add test_lockf#17010
serhiy-storchaka merged 2 commits into
python:masterfrom
corona10:bpo-22367-unittest

Conversation

@corona10

@corona10 corona10 commented Oct 31, 2019

Copy link
Copy Markdown
Member

Before working on bpo-22367, I 'd like to add unit test for fcntl.lockf

https://bugs.python.org/issue22367

Comment thread Lib/test/test_fcntl.py Outdated
Comment thread Lib/test/test_fcntl.py
fcntl = import_module('fcntl')


# TODO - Write tests for flock() and lockf().

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the part about flock() still relevant?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/python/cpython/blob/master/Lib/test/test_fcntl.py#L127

test_flock already exists.
But if the test is not enough, the comment should be remain

@corona10

Copy link
Copy Markdown
Member Author

@serhiy-storchaka
Updated!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @corona10 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @corona10 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-17084 is a backport of this pull request to the 3.8 branch.

@bedevere-bot

Copy link
Copy Markdown

GH-17085 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 7, 2019
(cherry picked from commit befa032)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
miss-islington added a commit that referenced this pull request Nov 9, 2019
(cherry picked from commit befa032)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
miss-islington added a commit that referenced this pull request Nov 9, 2019
(cherry picked from commit befa032)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants